<#include "/includes/header.ftl">
<#assign curr_argsid="">
<#if areaCategory?has_content><#assign curr_argsid=areaCategory.sysId></#if>

<div id='productlist_nav'>
	<#if areaPrimaryCategoryTrail?has_content>
			<b>Your Position:&nbsp;</b><A href='<@spring.url "/home.jsp#store"/>'>Store Home</A>&gt;&gt;
			<#list areaPrimaryCategoryTrail as g>
				<A href='<@spring.url "/listcategory2store.jsp?argsid=${g.sysId}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
			</#list>
	</#if>			
	<#if store?has_content><b>${store.name?default("No-Name")}:</b></#if>
</div>

<#if store?has_content>
<#assign stdsid = store.sysId>
<div id="productdetail_intro">
	<div class='product_img'><IMG src='${store.smallImage?default("http://localhost:8080/jubao/IMAGES/STORE/STORE_MEDIUM_DEFAULT.JPG")}' width="200" height="150" style="border: 1px solid rgb(0, 0, 0);" /></div>
	<div class='product_desc'>${store.name?default("No-Name")}
	<br/>${store.shortDesc?default("No-Short-Desc")}</div>
</div>


<div id='productlist_brands'>
	<#if couponList?has_content>
		<#list couponList as coupon>
			<A href='<@spring.url "/viewcoupondetail.jsp?cpsid=${coupon.sysId}"/>'>${coupon.name?default("No-Name")}</A><br>
		</#list>
	</#if>
</div>

<div id='productlist_contents'>
	<#if productPriceList?has_content>
		<#list productPriceList as pp>
			<li>
			<div class='product_img'><A href='<@spring.url "/viewproductdetail.jsp?prdsid=${pp.product.sysId}&argsid=${curr_argsid}&stosid=${pp.store.sysId}"/>'  ><IMG src='<@spring.url "/IMAGES/PRODUCT/PRODUCT_MEDIUM_DEFAULT.JPG"/>' width="80" height="60" style="border: 1px solid rgb(0, 0, 0);" /></A></div>
			<div class='product_desc'><A href='<@spring.url "/viewproductdetail.jsp?prdsid=${pp.product.sysId}&argsid=${curr_argsid}&stosid=${pp.store.sysId}"/>'   class='product_title'>${pp.product.name?default("No-Name")}</A>
			<br/>pp.listPrice:${pp.listPrice?default(0.00)}&nbsp;&nbsp;${pp.shortDesc?default("No-Short-Desc")}</div>
			</li>
		</#list>								
	</#if>						
</div>

<#if productPriceList?has_content>
	<div id="productlist_pagefooter"><#include "/includes/pagefooter.ftl"></div>
</#if>

<div id="productdetail_description">${store.longDesc?default("No-store-longDesc")}</div>
<#else>
	Not Found the store.
</#if>
<#include "/includes/footer.ftl">